package cn.doit.scala.day03.beans

/**
 * @DATE 2021/12/27/14:41
 * @Author MDK
 * @Version 2021.2.2
 * */
case class User(id: Int, name:String, age:Int)extends Comparable[User]{
  override def compareTo(o: User): Int = {
    this.age - o.age
  }
}
